﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;

using EnglishRemix.Services.Model;


namespace EnglishRemix.Services
{
    public partial class EnglishRemixBookService : IEnglishRemixBookService
    {

        /*
         * Get device's activation status.
         */
        [WebGet(UriTemplate = "device/status?device_id={device_id}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        public String deviceStatus_get(string device_id)
        {
            Response response = deviceFacade.getDeviceStatus(device_id);

            return response.toJson();
        }
    }
}